﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns ="false" OnRowCancelingEdit ="GridView1_RowCancelingEdit" OnRowDeleting ="GridView1_RowDeleting" OnRowEditing ="GridView1_RowEditing" OnRowUpdating ="GridView1_RowUpdating">
        <Columns >
            <asp:BoundField DataField ="Id" HeaderText ="Id"  ReadOnly ="true" />
            <asp:BoundField DataField ="Title" HeaderText ="标题" />
            <asp:BoundField DataField ="Content" HeaderText ="内容" />
            <asp:BoundField DataField ="Author" HeaderText ="作者" />
            <asp:BoundField DataField ="Remarks" HeaderText ="备注" />
            <asp:CommandField ShowCancelButton ="true" ShowDeleteButton ="true" ShowEditButton ="true" HeaderText ="操作" />
        </Columns>
    </asp:GridView>
    <asp:Button ID="Button1" runat="server" Text="新增" OnClick="Button1_Click" />
    <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns ="false">
        <Columns >
            <asp:BoundField DataField ="Id" HeaderText ="Id" />
            <asp:BoundField DataField ="Username" HeaderText ="用户名" />
            <asp:BoundField DataField ="Password" HeaderText ="密码" />
        </Columns>
    </asp:GridView>
</asp:Content>
